/*
 * Created on Jul 27, 2005
 *
 */
package com.erclab.internal.xpresso.reportelements;

import com.erclab.internal.xpresso.exceptions.ReportException;
import com.erclab.internal.xpresso.reports.Report;

/**
 * @author Enrique Rodriguez.
 *
 */
public class PrintYesNo extends ReportElement {

	/* (non-Javadoc)
	 * @see com.erclab.internal.xpresso.reportelements.ReportElement#toHTML(java.lang.String, java.lang.String, com.erclab.internal.xpresso.reports.Report)
	 */
	public String toHTML(
		String columnValue,
		String uniqueKeyValue,
		Report theReport)
		throws ReportException {
		
		if (columnValue == null)
			return null;
		if(columnValue.equals("0")){
			return "N";
		} else if (columnValue.equals("1")){
			return "Y";
		} else {
			return columnValue;
		}
		
	}

}
